package com.pet.controller.admin;

import com.pet.result.Result;
import com.pet.service.UserInformationService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/admin/common")
@Slf4j
public class SystemManageController {
    @Autowired
    private UserInformationService userInformationService;

    /**
     * 删除用户信息
     */
    @RequestMapping("/deleteUserInformation")
    public Result deleteUserInformation(Integer id) {
        log.info("删除用户信息:{}",id);
        userInformationService.deleteUserInformation(id);
        return Result.success();
    }
}
